﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcApplication4
{
    public class MyAuthorizeAttribute : System.Attribute
    {
        public bool MyAuthorizeAttribute(HttpContext context)
        {
            return context.Session["user_id"] != null;
        }
    }
}
